package com.xtaller.easy.admin.specification;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.*;

/**
 * Created by Taller on 2018/4/23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value ="创建菜单数据")
public class MenuCreate {
    @ApiModelProperty(value = "菜单名称名称")
    private String name;
    @ApiModelProperty(value = "模块Id")
    private String moduleId;
    @ApiModelProperty(value = "父级Id")
    private String parentId;
    @ApiModelProperty(value = "图标class")
    private String icon;
    @ApiModelProperty(value = "页面地址路径")
    private String url;
    @ApiModelProperty(value = "默认读取api执行函数")
    private String api;
    @ApiModelProperty(value = "排序")
    private int sort;
    @ApiModelProperty(value = "可见状态 0可见 1不可见")
    private int isHidden = 0;
    @ApiModelProperty(value = "备注")
    private String remark;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getIsHidden() {
        return isHidden;
    }

    public void setIsHidden(int isHidden) {
        this.isHidden = isHidden;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
